Skip to content

Add package constant type to metacache#9069

Open
Noremos wants to merge 5 commits into
FirebirdSQL:masterfrom
Noremos:package_constant_type_cache
Open

Add package constant type to metacache#9069
Noremos wants to merge 5 commits into
FirebirdSQL:masterfrom
Noremos:package_constant_type_cache

Conversation

@Noremos

@Noremos Noremos commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Implementation of the proposed improvement

Comment thread src/dsql/ExprNodes.cpp Outdated
dsqlScratch->qualifyExistingName(constantName, obj_package_constant);

if (PackageReferenceNode::constantExists(tdbb, dsqlScratch->getTransaction(), constantName))
dsc consatntDsc{};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistype: constantDsc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here and in other places

Comment thread src/dsql/PackageNodes.epp Outdated
}

if (!node->m_package)
if (!node->m_package || constant == nullptr)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constant == nullptr check should be enough

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed as suggested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants